home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / comm / misc / CapiRexxVoiceM.lha / capibase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-03  |  1.8 KB  |  75 lines

  1. #ifndef CAPIBASE_H
  2. #define CAPIBASE_H
  3. /*
  4. **
  5. **    $Id: capibase.h,v 1.876 1996/08/13 03:16:35 chris Exp $
  6. **    $Revision: 1.876 $
  7. **
  8. **    $Filename: ARCH/AMIGADOS/CAPIBase.h $
  9. **    $Author: chris $
  10. **    $Portability: Amiga $
  11. **
  12. **    Include-File for communication with the capi20.device
  13. **
  14. **    COPYRIGHT (C) 1992-1996 BY RELOG AG, ZUERICH. ALL RIGHTS RESERVED.
  15. **    NO PART OF THIS SOFTWARE MAY BE COPIED, REPRODUCED, OR TRANSMITTED
  16. **    IN ANY FORM OR BY ANY MEANS,  WITHOUT THE PRIOR WRITTEN PERMISSION
  17. **    OF RELOG AG.
  18. **
  19. */
  20.  
  21. #include <exec/types.h>
  22. #include <exec/io.h>
  23.  
  24. #include "capi-usr.h"
  25.  
  26.  
  27. /*
  28. **    CAPI Device Name for OpenDevice()
  29. */
  30. #define CAPINAME "capi20.device"
  31.  
  32.  
  33. /*
  34. **    CAPI device commands for DoIO()
  35. */
  36. /* #define CAPIIOCMD_REGISTER            (('C' << 8) | 0x01) */
  37. /* #define CAPIIOCMD_RELEASE            (('C' << 8) | 0x02) */
  38. #define CAPIIOCMD_PUT_MESSAGE            (('C' << 8) | 0x03)
  39. #define CAPIIOCMD_GET_MESSAGE            (('C' << 8) | 0x04)
  40. #define CAPIIOCMD_SET_SIGNAL            (('C' << 8) | 0x05)
  41. #define CAPIIOCMD_GET_MANUFACTURER        (('C' << 8) | 0xF0)
  42. #define CAPIIOCMD_GET_VERSION            (('C' << 8) | 0xF1)
  43. #define CAPIIOCMD_GET_SERIAL_NUMBER        (('C' << 8) | 0xF2)
  44. #define CAPIIOCMD_GET_PROFILE            (('C' << 8) | 0xF3)
  45. #define CAPIIOCMD_MANUFACTURER            (('C' << 8) | 0xFF)
  46.  
  47.  
  48. /*
  49. **    CAPI IO-Request
  50. */
  51. struct IOExtCAPI
  52. {
  53.     struct IOStdReq IOCAPI;            /* Standard extended IO-Request */
  54.  
  55.     /*
  56.     **    The following three values must be initialized before the device
  57.     **    is opened:
  58.     */
  59.     UWORD    Level3Cnt;                /* Number of simultaneous conections */
  60.     UWORD    DataBlkCnt;                /* Number of unacknowledged data blocks (2..7) */
  61.     UWORD    DataBlkLen;                /* Maximum length of a data block (2048?) */
  62.  
  63.     /*
  64.     **    The following value will be set after every call to the CAPI device.
  65.     **    It contains the CAPI result code according to the CAPI 2.0 specification.
  66.     */
  67.     UWORD    CAPIResult;
  68.  
  69.     ULONG    reserved[8];                /* Future expansion */
  70. };
  71.  
  72.  
  73. #endif
  74.  
  75.